package com.xiaotou.listener;

import java.util.Properties;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class EnvParameter {

	static Log logger = LogFactory.getLog(EnvParameter.class);
	
	private static Properties props = null;
	
	public static Properties getProps() {
		return props;
	}
	public static void setProps(Properties props) {
		EnvParameter.props = props;
	}


	public static String getProp(String key){
		return props.getProperty(key);
	};
	
	public static String getProp(String key, String defaultValue){
		return props.getProperty(key, defaultValue);
	};

}
